<%@ Control Language="C#" AutoEventWireup="true" CodeFile="LinkToUs.ascx.cs" Inherits="includes_LinkToUs" %>

<br />
<asp:MultiView ID="mvLinkToUs" runat="server">
    <asp:View ID="vwForm" runat="server">
        <table>
            <tr>
                <td align="left" valign="top">Site URL</td>
                <td valign="top">:</td>
                <td align="left">
                    <asp:TextBox ID="txtURL" runat="server" CssClass="design" Width="200px"></asp:TextBox>
                </td>
                <td align="left">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtURL"
                        Display="Dynamic" ErrorMessage="Site URL is required!" SetFocusOnError="True"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtURL"
                        Display="Dynamic" ErrorMessage="Invalid URL!" ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?"></asp:RegularExpressionValidator></td>
            </tr>
            <tr>
                <td align="left" valign="top">Title of Site</td>
                <td valign="top">:</td>
                <td align="left">
                    <asp:TextBox ID="txtTitle" runat="server"  CssClass="design" Width="200px"></asp:TextBox></td>
                <td align="left">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtTitle"
                        Display="Dynamic" ErrorMessage="Title of the site required!"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td align="left" valign="top" style="height: 87px">Site Description</td>
                <td valign="top" style="height: 87px">:</td>
                <td align="left" style="height: 87px" valign="top">
                    <asp:TextBox ID="txtDescription" runat="server" Height="80px" TextMode="MultiLine"
                         CssClass="design" Width="200px"></asp:TextBox></td>
                <td align="left" style="height: 87px" valign="top">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtDescription"
                        Display="Dynamic" ErrorMessage="Site description required!"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td align="left" valign="top">Where we found our link<br />
                    (like: www.yoursite.com/links)</td>
                <td valign="top">:</td>
                <td align="left">
                    <asp:TextBox ID="txtReciprocalURL" runat="server" CssClass="design" Width="200px"></asp:TextBox></td>
                <td align="left">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtReciprocalURL"
                        Display="Dynamic" ErrorMessage="URL required!"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtReciprocalURL"
                        Display="Dynamic" ErrorMessage="Invalild URL!" ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?"></asp:RegularExpressionValidator></td>
            </tr>
            <tr>
                <td align="left" valign="top">Your Name</td>
                <td valign="top">:</td>
                <td align="left">
                    <asp:TextBox ID="txtName" runat="server" CssClass="design" Width="200px"></asp:TextBox></td>
                <td align="left">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtName"
                        Display="Dynamic" ErrorMessage="Your name is required!"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td align="left" valign="top">E-Mail Address</td>
                <td valign="top">:</td>
                <td align="left">
                    <asp:TextBox ID="txtEMail" runat="server" CssClass="design" Width="200px"></asp:TextBox></td>
                <td align="left">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtEMail"
                        Display="Dynamic" ErrorMessage="E-Mail address required"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtEMail"
                        Display="Dynamic" ErrorMessage="Invalid E-Mail" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>
            </tr>
            <tr>
                <td valign="top"></td>
                <td valign="top"></td>
                <td align="left">
                    <asp:Button ID="btnSubmit" runat="server" OnClick="btnSubmit_Click" Text="Submit" /></td>
                <td align="left"></td>
            </tr>
        </table>
    </asp:View>
    <asp:View ID="vwMessage" runat="server">
        <table>
            <tr>
                <td colspan="3">
                    <asp:Label ID="lblMsgHead" runat="server" Font-Bold="True"></asp:Label></td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:Label ID="lblMessage" runat="server"></asp:Label></td>
            </tr>
            <tr>
                <td colspan="3"></td>
            </tr>
        </table>
    </asp:View>
</asp:MultiView>
